package com.itheima.mapper;

import com.itheima.pojo.Shopping;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;

import java.util.List;

@Mapper
public interface ShoppingMapper {

    @ResultMap("ShoppingMapper")
    List<Shopping> all();

    @ResultMap("ShoppingMapper")
    Integer add(Shopping shopping);

    @ResultMap("ShoppingMapper")
    Shopping a(String id);


    @ResultMap("ShoppingMapper")
    Integer delete();

    @ResultMap("ShoppingMapper")
    Integer newDelete(String dishId,String setmealId);


    @ResultMap("ShoppingMapper")
    List<Integer> chas(String name);

    @ResultMap("ShoppingMapper")
    Shopping cha(String name);

    @ResultMap("ShoppingMapper")
    List<Shopping> nd();

    @ResultMap("ShoppingMapper")
    void ab(Shopping shopping);








}
